import request from '@/utils/request'

// 查询AQI小时列表
export function listAqiHour(query) {
  return request({
    url: '/aqi/aqiHour/list',
    method: 'get',
    params: query
  })
}

// 查询AQI小时详细
export function getAqiHour(id) {
  return request({
    url: '/aqi/aqiHour/' + id,
    method: 'get'
  })
}

// 新增AQI小时
export function addAqiHour(data) {
  return request({
    url: '/aqi/aqiHour',
    method: 'post',
    data: data
  })
}

// 修改AQI小时
export function updateAqiHour(data) {
  return request({
    url: '/aqi/aqiHour',
    method: 'put',
    data: data
  })
}

// 删除AQI小时
export function delAqiHour(id) {
  return request({
    url: '/aqi/aqiHour/' + id,
    method: 'delete'
  })
}
